<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class User_model extends MY_Model{

	function  __construct(){
		parent::__construct();
	}

	function change_password($user_id, $newpass){
	    $this->db->where('id', $user_id)->update(TBL_USER, array('password' => sha1($newpass)));
	    return true;
	}
}